xen: sched: on credit2, don't reprogram the timer if idle
authorDario Faggioli <dario.faggioli@citrix.com>
Fri, 18 Mar 2016 17:32:50 +0000 (18:32 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 8 Apr 2016 15:00:33 +0000 (16:00 +0100)
commit2c6f317a2bc34cd06d00af39d40fd31fb9d52863
tree083bb3897ec864f8e89938316cc68c8edcdcde26
parent6f6c204f94d1f9efd491479d6c8eea526eb48547
xen: sched: on credit2, don't reprogram the timer if idle

As other schedulers are doing already: if the idle vcpu
is picked and scheduled, there is no need to reprogram the
scheduler timer to fire and invoke csched2_schedule()
again in future.

Tickling or external events will serve as pokes, when
necessary, but until we can, we should just stay idle.

Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
Reported-by: Tianyang Chen <tiche@seas.upenn.edu>
Suggested-by: George Dunlap <george.dunlap@citrix.com>
Acked-by: George Dunlap <george.dunlap@citrix.com>
xen/common/sched_credit2.c